package com.hx.dc.service;

import java.util.List;

import com.github.pagehelper.PageInfo;

public interface BaseService<T> {
	
	   //新增
		public int insert(T t);
		
		public int delete(T t);
		
		//根据多个主键删除
		public int deleteList(List<String> keys);
		
		public int update(T t);

		public int updateDisable(T t);

		public int updateAble(T t);
		
		public T select(T t);
		
		public List<T> selectList(T t);

		public List<T> selectTime(T t);

		public List<T> selectName(T t);

	    public List<T> search(T t);
		
		//分页
		public PageInfo<T> selectPage(T t, Integer pageIndex, Integer pageSize);

}
